#ifndef STR_CONV
#define STR_CONV

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <iconv.h>
#include <errno.h>

int is_utf8_format(const char *str);

int get_utf8_length(char *str);

int utf8_to_gbk(char *inbuf, size_t inlen, char *outbuf, size_t outlen);

int gbk_to_utf8(char *inbuf, size_t inlen, char *outbuf, size_t outlen);
